//
//  FrameGenParamGen.cpp
//  note-recog
//
//  Created by Philip Home on 17/05/2013.
//  Copyright (c) 2013 None. All rights reserved.
//

#include "SingleNoteGenerator.h"
#include "FrameGenParam.h"

std::vector<FrameGenParam> SingleNoteGenerator::getComponentParams(float t) const
{
    std::vector<FrameGenParam> results;
    const float lambda = 0.2;
    if(t>_start_time)
    {
        results.push_back(FrameGenParam(1000.f*exp((_start_time-t)/lambda), lambda, _freq));
    }
    else
    {
        results.push_back(FrameGenParam(0.f, 0.f, 0.f));
    }
    return results;
}
